<?php  
//先给个静态
$_thread['taglist']=array(array('name'=>
'唯美','tagid'=>1,'style'=>'info'),array('name'=>'大方','tagid'=>2,'style'=>'light'));
 ?>
<?php if(!empty($_thread['taglist'])) { foreach($_thread['taglist'] as $tag) { ?>
<a href="<?php echo url("forum-$_thread[fid]-$page", array('tagids'=>$tag['tagid']));?>" class="badge badge-pill badge-<?php echo empty($tag['style']) ? 'secondary' : $tag['style'];?>"><?php echo $tag['name'];?></a>
<?php  }} ?>
